from qfluentwidgets import FluentIconBase, Theme
from . import resource_rc
from enum import Enum


class OfficeIcon(FluentIconBase, Enum):
    ACCESS = 'access'
    COMPRESSED_FILE = 'compressed_file'
    CSV = 'csv'
    DATA = 'data'
    DATA1 = 'data1'
    DIR = 'dir'
    DOCUMENT = 'document'
    EMAIL = 'email'
    EML = 'eml'
    EXCEL = 'excel'
    EXCEL2 = 'excel2'
    EXCEL3 = 'excel3'
    EXCEL4 = 'excel4'
    EXCEL5 = 'excel5'
    FAVORITES = 'favorites'
    FUNDS = 'funds'
    GIF = 'gif'
    HOME = 'home'
    IMG = 'img'
    JPG = 'jpg'
    LOGO = 'logo'
    NEW_FILE = 'new_file'
    NEW_FILE2 = 'new_file2'
    OUTLOOK = 'outlook'
    PDF = 'pdf'
    PDF2 = 'pdf2'
    PDF3 = 'pdf3'
    PDF4 = 'pdf4'
    PDF5 = 'pdf5'
    PDF_TO_PPT = 'pdf_to_ppt'
    PHONE = 'phone'
    PICTURE = 'picture'
    PNG = 'png'
    PPT = 'ppt'
    PPT2 = 'ppt2'
    PPT3 = 'ppt3'
    PPT4 = 'ppt4'
    PWD_DICT = 'pwd_dict'
    SHP = 'shp'
    SHP1 = 'shp1'
    TEXT = 'text'
    TXT = 'txt'
    UNKNOWN = 'unknown'
    UNKNOWN2 = 'unknown2'
    UNKNOWN3 = 'unknown3'
    VIDEO = 'video'
    WORD = 'word'
    WORD2 = 'word2'
    WORD3 = 'word3'
    WORD4 = 'word4'
    WORD5 = 'word5'
    ZIP = 'zip'
    IMG1 = 'img1'
    MARK = 'mark'
    UPLOAD = 'upload'

    def path(self, theme=Theme.AUTO) -> str:
        return f':/svg/{self.value}.svg'


class WordPng(FluentIconBase, Enum):
    PNG1 = '1'
    PNG2 = '2'
    PNG3 = '3'
    PNG4 = '4'
    TRANS = 'trans'

    def path(self, theme=Theme.AUTO) -> str:
        return f':/word-img/{self.value}.png'
